package com.hrma.services;


import com.github.pagehelper.Page;
import com.hrma.entity.LeaveApplication;
import com.hrma.entity.LeaveApplicationDTO;
import com.hrma.entity.LeaveApplicationVO;
import com.hrma.entity.SelectResult;

import java.util.List;

public interface LeaveApplicationService {
    /**
     * 增加请假申请记录
     */
    LeaveApplication add(LeaveApplication data);

    /**
     * 修改请假申请信息
     */
    void update(LeaveApplication data);

    /**
     * 查找请假申请记录
     */
    List<SelectResult> select();

    /**
     * 得到所有请假申请记录
     */
    Page<LeaveApplicationVO> getList(LeaveApplicationDTO data);

    /**
     * 得到个人请假申请记录
     */
    Page<LeaveApplicationVO> getPersonalList(LeaveApplicationDTO data);
}
